<template>
  <div class="top">
    <RouterView />
  </div>

  <div class="bottom">
    <RouterLink to="/films">电影</RouterLink>
    <RouterLink to="/cinemas">影院</RouterLink>
    <RouterLink to="/center">我的</RouterLink>
  </div>
</template>

<script>
export default {
  // computed: {
  //   showBottom() {
  //     // 判断 this.$route 的 name
  //     console.log('this.$route', this.$route)
  //     return this.$route.name !== 'film'
  //   }
  // }
}
</script>

<style>
* {
  margin: 0;
  padding: 0;
}

html,body,#app {
  height: 100%;
}

#app {
  display: flex;
  flex-direction: column;
}

.top {
  flex: 1;
  background-color: green;
  overflow-y: auto;
}

.bottom {
  display: flex;
  align-items: center;
  height: 50px;
  background-color: pink;
}

.bottom a {
  flex: 1;
  text-align: center;
}
</style>